from django.db import models
from django.urls import reverse
# Create your models here.

class ClassRoom(models.Model):
    class_id = models.CharField(max_length=6,verbose_name='教室的id号')
    class_person_num = models.IntegerField(verbose_name='教师人数')
    class_room_name = models.CharField(max_length=51,verbose_name='教室名字')
    class_computer_num = models.IntegerField(verbose_name='教室电脑数')

    def get_absolute_url(self):
        return reverse('test15', kwargs={'pk': self.pk})

